package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayChannelRuleServiceApi;
import com.thb.pay.api.payment.vo.req.PayChannelRulePageReq;
import com.thb.pay.api.payment.vo.req.PayChannelRuleReq;
import com.thb.pay.api.payment.vo.resp.PayChannelRuleVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayChannelRuleServiceApiFallbackFactory implements FallbackFactory<PayChannelRuleServiceApi> {


    @Override
    public PayChannelRuleServiceApi create(Throwable throwable) {
        return new PayChannelRuleServiceApi() {
            @Override
            public PageResult<PayChannelRuleVo> findPage(PayChannelRulePageReq pageReq) {
                return null;
            }

            @Override
            public void add(PayChannelRuleReq payChannelRuleReq) {

            }

            @Override
            public void update(PayChannelRuleReq payChannelRuleReq) {

            }

            @Override
            public PayChannelRuleVo getById(Long id) {
                return null;
            }

            @Override
            public PayChannelRuleVo getByChannelId(Long channelId) {
                return null;
            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}